package site.jjqzplucky.order.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
@RequestMapping("/order")
@RequiredArgsConstructor
public class OrderController {

    final private RestTemplate restTemplate;
    final private DiscoveryClient discoveryClient;

    @GetMapping("/list")
    public String list(){
        return "order-service list ";
    }
}
